/**
 * <AiRmob-Framework; A simple augmented reality framework for android >
    Copyright (C) <2012>  <AiRmob Team>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package rendercomponents;

import android.content.Context;

public interface ResourceManagerInterface {
	//Internal method to import a modelCustom from a file
	//returns true if import was successful
	public boolean loadModelFromOBJ(String resource, ModelCustom model, boolean useVBO);
	
	//Internal method to import a modelGroup from a file
	//returns true if import was successful
	public boolean loadModelGroupFromOBJ(String resource, ModelGroup modelGroup, boolean useVBO);
	
	
	//Creates an program out of the vertexShader and fragmentShader (see Class-Implementation)
	//and returns a reference to it
	/**
	 * Imports a vertex- and a fragmentshader and links them together as a program. 
	 * The OpenGL ID of this program will be returned.
	 * 
	 * @param vertexShader VertexShader that shall be used to create program.
	 * @param fragmentShader FragmentShader that shall be used to create program.
	 */
	public int createProgram(VertexShader vertexShader, FragmentShader fragmentShader);
	
	//Import texture from file defined by the String path
	//sets the reference to the generated OpenGL-Texture to the ID and returns it
	public int loadTextureFromFile(String path, Context context, int ID);
}
